#ifndef QI_LASER_SCAN_H
#define QI_LASER_SCAN_H

#include <QGraphicsItem>
#include <QKeyEvent>
#include <QWheelEvent>

#include "sensor/Laser.h"

class QiLaserScan : public QGraphicsItem
{
public:
    QiLaserScan( LaserData const& lms );
    void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget );
    void setScale( const double scale );

    QRectF boundingRect() const;

protected:
    virtual void keyPressEvent( QKeyEvent * event );
    virtual void wheelEvent(QWheelEvent *event);

private:
    LaserData const& m_lms;
    double m_scale;
};

#endif //QI_LASER_SCAN_H
